<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.training.dto.Employee"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<a href="logoutServlet" style="align: right;">Logout</a>

	<%
		Employee employee = (Employee) session.getAttribute("employee");

		if (employee != null) {
	%>


	<h1>Welcome to Our World ....</h1>
	<br>
	<form action="updateEmployee" method="post">

		<h2>
			<input name="userName" readonly="readonly"
				value="<%=employee.getUserName()%>"> <br>
		</h2>
		<h2>
			Employee ID :
			<%=employee.getEmployeeId()%><br>
		</h2>
		<h2>
			First Name : <input type="text" name="firstName"
				value="<%=employee.getFirstName()%>"><br>
		</h2>
		<h2>
			Last Name : <input type="text" name="lastName"
				value="<%=employee.getLastName()%>"><br>
		</h2>
		<h2>
			Enter New Password : <input type="password" name="password" value=""><br>
		</h2>
		<input type="submit" value="Update my record">

	</form>

	<%
		} else {
	%>
	NO Employee Records available
	<%
		}
	%>
</body>
</html>